
#ifndef  BREAKPOINTFILE_H
#define  BREAKPOINTFILE_H

#include <string>

class BreakPointFile {
public:
    BreakPointFile(const std::string & filePath);
    ~BreakPointFile();

    const long long loadFromFile();
    void saveToFile(const long long seqNo);

    const long long getSeqNo() const  { return seqNo; }
    const std::string & getFilePath() const { return filePath; }

private:
    void open();
    long long readLongLong();
    void writeLongLong(const long long seqNo);
    void close();
    void flush();
private:
    long long seqNo;
    std::string filePath;
};


#endif   /* BREAKPOINTFILE_H */
